package com.dragon.design.pattern.creational.simplefactory;

/**
 * @author dragon
 * @version V1.0.0-RELEASE
 * @date 2019/5/15 15:23
 */
public class VideoFactory {

    public static <T extends Video> Video getVideo(Class<T> c) throws IllegalAccessException, InstantiationException {
        T t = c.newInstance();

        return (Video) t;
    }
}
